﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace HookupAppForm.Draw
{
    public class GridExt : Grid
    {  
        //CLR属性进行封装
        public string Header
        {
            get { return (string)GetValue(HeaderProperty); }
            set { SetValue(HeaderProperty, value); }
        }

        //定义依赖属性
        public static readonly DependencyProperty HeaderProperty = DependencyProperty.Register("Header", typeof(string), typeof(GridExt));
         
        //public BindingExpressionBase SetBinding(DependencyProperty dp, BindingBase binding)
        //{
        //    return BindingOperations.SetBinding(this, dp, binding);
        //}  
    }
}
